7a5ed605a4b3d7f28ea48e079dcb9f666053cd21,src/main/java/uk/co/coen/capsulecrm/client/CapsuleEntity.java,CapsuleEntity,add,#CCustomField#,25

Before Change


        } else {
            return asyncHttpClient.preparePost(capsuleUrl + "/api" + readContextPath() + "/" + id + "/customfield")
                    .addHeader("Content-Type", "application/xml")
                    .setRealm(realm)
                    .setBody(xstream.toXML(customField))
                    .execute(new AsyncCompletionHandler<Response>() {
                        @Override
                        public Response onCompleted(Response response) throws Exception {

After Change


        } else {
            return asyncHttpClient.preparePost(capsuleUrl + "/api" + readContextPath() + "/" + id + "/customfield")
                    .addHeader("Content-Type", "application/xml")
                    .setRealm(realm)
                    .setBodyEncoding("UTF-8")
                    .setBody(xstream.toXML(customField))
                    .execute(new AsyncCompletionHandler<Response>() {
                        @Override
                        public Response onCompleted(Response response) throws Exception {